package com.onefish.toolkit.controller;

import com.onefish.toolkit.ESAPI.ESAPIHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/esapi")
public class ESAPIController {
    @Autowired
    ESAPIHandler esapiHandler;
    @GetMapping("/inputValid")
    public String inputValid(String input){
        return esapiHandler.validInput(input);
    }
}
